Skip to content

OpenConceptLab/ocl_issues#3103 | Release waits for the version's expansion to be built, wherever it's offered - #138

Open
paynejd wants to merge 9 commits into
mainfrom
ocl-issues-3103-release-wait
Open

paynejd wants to merge 9 commits into
mainfrom
ocl-issues-3103-release-wait

Conversation

@paynejd

@paynejd paynejd commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Closes OpenConceptLab/ocl_issues#3103: a collection version is released only once its default expansion is built. The API side, which refuses such a release with a 409, is OpenConceptLab/oclapi2#1141; merge this after it. OpenConceptLab/ocl-cli#17 stops the CLI creating collection versions released.

What changes

Release is disabled while the version's default expansion is being built, with "Available once this version's expansion is built" on hover, wherever it's offered:

  • The version page's Actions menu (RepoManagementList.jsx): it offered Release during a build.
  • A Versions row's menu: it already waited while the version itself was processing; it now also waits while its default expansion is rebuilt, which doesn't mark the version.
  • The Released box in the version edit form, opened from either menu.
  • Submit in the release confirmation, for a build that starts after the menu was opened.
  • The Released box in the New Version form, for a collection version that builds an expansion: the API now refuses to make one released. With the lock toggle, the expansion is chosen after Submit, and every choice but "none" builds one; without it, while Autoexpand is ticked. Release it from its menu once it's built.

"Being built" follows the API: the default expansion is processing, or the version expands itself and is still processing with no default yet (its seed makes the expansion). Un-Release, and a repository notice's lock (which says why first), are as before.

It turns on without a reload. The version page reads its default expansion's processing/ when the version names one and each time the Actions menu opens (a rebuild can start from the Versions tab meanwhile), then every 30 s while it's being built (useDefaultExpansionProcessing); the edit form and the confirmation each read their own version when they open. A Versions row menu asks the same when it opens, and polls from there with the tab's existing polling. A failed read keeps the last answer; with none yet, it counts as built.

Also: an edit now sends expansion_url only when it's changed in the form, so saving a form opened while the version was seeding no longer clears the default its seed made since. A refused release shows the API's reason (this client returns an error's body as the response).

It reuses the disabled-item-with-tooltip pattern already in place (LockTooltip/LockableMenuItem on the version page, RepoVersionRowMenu's tooltip in the Versions tab); no new component. The rule is getReleaseWait in defaultExpansion.js; parseProcessingValue moves to processingStages.js to be shared. The tooltip text is in en, es, pt-BR and zh.

Screenshots

A local dev build against a mocked API: unreleased version v2 of a demo collection, its default expansion being rebuilt.

Version page, Actions menu, 1440

Before (main) After
before 1440 after 1440

Version page, Actions menu, 390

Before (main) After
before 390 after 390

After the build ends: the mocked processing/ turns false and Release turns on 30 s later, with the menu still open and no reload.

1440 390
built 1440 built 390

New Version form (HEAD's Actions, Create Version)

Before (main), 1440 After, 1440
create before 1440 create after 1440
Before (main), 390 After, 390
create before 390 create after 390

Versions tab, v2's row menu, during the rebuild

Before (main), 1440 After, 1440
versions before 1440 versions after 1440
Before (main), 390 After, 390
versions before 390 versions after 390

At 390 the tooltip is cut off at the screen's left edge. That's the shared pattern's left placement, the same for a notice's lock, and isn't changed here.

Tests

  • defaultExpansion.test.js: the rule (the default processing, the seed, no expansion, a released version, no version).
  • RepoManagementList.test.js (new): the version page's Release item renders disabled with the reason while the expansion builds, enabled otherwise, and a notice's lock says why first. Its first test fails on main.
  • ReleaseVersion.test.js (new): Submit waits, saying why, and is offered otherwise.
  • versionExpansion.test.js: an edit sends the default expansion only when it's changed; a new collection version that builds an expansion isn't released as it's made.
  • npm test: 497 pass. ESLint is clean on src/components/repos and src/hooks. Review: Codex passes, the simplification review and the final checks are in the comments below.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb

…nsion to be built, wherever it's offered

- A collection version is released only once its default expansion is built, as the API now requires. While that
  expansion is processing, or while a version that expands itself is still processing with no default yet (its seed
  makes the expansion), Release is disabled with "Available once this version's expansion is built" on hover.
- Where: the version page's Actions menu, a Versions row's menu (which already waited while the version processed,
  and now also waits for a rebuild of its default expansion), and the Released box of the version edit form.
  Un-Release, and a repository notice's lock, are as before.
- The version page reads its default expansion's processing state when the version names one and when the Actions
  menu opens, then again on the processing poll's interval while it's being built, so Release turns on once it's
  built, without a reload (useDefaultExpansionProcessing). The Versions tab uses its own expansion polling.
- The rule is getReleaseWait in defaultExpansion.js; parseProcessingValue moves to processingStages.js to be shared.
  Tests for the rule and for the version page's Release item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
…where, an open row menu follows its version, and a refusal says why

Codex review pass 1:
- F1.1: an edit sends the default expansion only when it's changed in the form, so saving a form opened while the
  version was seeding no longer clears the default its seed made since (getExpansionURLPayload).
- F1.2: a Versions row menu asks again whether its default expansion is being built when it opens, as the version
  page's menu does; when it is, the version's expansions are read again and polled from there.
- F1.3: an open Versions row menu is built from the version as it is now, so Release turns on when its seed ends.
- F1.4: on the version page, the default expansion counts as being built until its first read answers; a read that
  fails counts as built.
- F1.5: a refused release shows the API's reason, which this client hands back as the response itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 1 (codex-cli 0.169.0, commit 4d025b1)

Verdict: findings (5 findings)

  • F1.1 (P1) src/components/repos/RepoHome.jsx:608: Releasing from an open edit form can clear the default expansion that just finished building.
  • F1.2 (P1) src/components/repos/CollectionVersionsTab.jsx:689: The Versions row menu can keep offering Release throughout a default expansion rebuild.
  • F1.3 (P1) src/components/repos/CollectionVersionsTab.jsx:1040: An open Versions row menu keeps Release disabled after an automatic build finishes.
  • F1.4 (P1) src/hooks/useDefaultExpansionProcessing.js:32: The version page treats an unknown build status as ready and lets the confirmation stay actionable after polling detects a rebuild.
  • F1.5 (P1) src/components/repos/RepoHome.jsx:577: The release confirmation drops the API's reason for refusing a release.

Response

  • F1.1: Fixed in 502bde3: an edit sends expansion_url only when it's changed in the form (getExpansionURLPayload, tested), so a default the seed made since the form opened is kept. This was there before for any edit.
  • F1.2: Fixed in 502bde3: a row menu asks processing/ for its default expansion when it opens; when it's being built, the version's expansions are read again and the tab's existing poll takes it from there. Checked against a mocked API: a rebuild started after the tab loaded disables Release on opening the menu.
  • F1.3: Fixed in 502bde3: the open row menu is built from the version in displayVersions, so it follows the processing poll.
  • F1.4: Fixed in part in 502bde3: on the version page the default counts as being built until its first read answers, and a failed read counts as built. The confirmation dialog isn't held: it opens only from an enabled Release, and a build starting in those seconds gets the API's 409 with its reason (F1.5).
  • F1.5: Fixed in 502bde3: the alert reads the top-level detail that the client returns on an error, so a refused release shows the API's reason.
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "full",
  "commit": "4d025b1dff8045e112d8aa139a7dcbe56a998b1d",
  "verdict": "findings",
  "prior": [],
  "findings": [
    {
      "id": "F1.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 608,
      "claim": "Releasing from an open edit form can clear the default expansion that just finished building.",
      "scenario": "Open Edit Version from the header while a new auto-expanding version is seeding and has no expansion URL. When polling sees the completed build, the checkbox enables, but the form still holds the original empty expansion field. Checking Release and saving sends `released: true` and `expansion_url: null`. The API accepts the update and clears the newly built default.",
      "action": "Omit `expansion_url` from edit requests unless the user changed it. Add a regression test that opens the form during seeding and verifies that releasing after the build preserves the default.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F1.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 689,
      "claim": "The Versions row menu can keep offering Release throughout a default expansion rebuild.",
      "scenario": "Load the Versions tab while the default expansion is idle, then start its rebuild from another tab. Opening the row menu still reads the cached idle expansion. Opening the menu triggers no status request, and the poll only starts for expansions already known to be processing. Release stays enabled and the API rejects the attempt.",
      "action": "Check the named default expansion when the row menu opens and keep its release state current while the menu is open. Cover a rebuild started after the Versions tab loaded.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F1.3",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 1040,
      "claim": "An open Versions row menu keeps Release disabled after an automatic build finishes.",
      "scenario": "Open the row menu for a new auto-expanding version while its seed is running. Polling updates the row with the completed version, but the menu keeps the object captured on open, with `is_processing: true` and no expansion URL. The user has to close and reopen the menu before Release enables.",
      "action": "Store the row's version key and build the open menu from the latest version in `displayVersions`. Test the transition with the menu left open.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F1.4",
      "severity": "P1",
      "tag": null,
      "file": "src/hooks/useDefaultExpansionProcessing.js",
      "line": 32,
      "claim": "The version page treats an unknown build status as ready and lets the confirmation stay actionable after polling detects a rebuild.",
      "scenario": "Start a rebuild and open the version page's Actions menu while the status request is pending. Release is enabled until the response arrives, so an editor can open the confirmation. When the GET returns `true`, the confirmation's Submit button still accepts a click and sends a release request that the API refuses.",
      "action": "Distinguish a pending status check from a completed build. Apply the live release restriction to the confirmation as well as the menu and edit checkbox.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F1.5",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 577,
      "claim": "The release confirmation drops the API's reason for refusing a release.",
      "scenario": "A rebuild starts between the editor opening the release confirmation and clicking Submit. The API returns a 409 with a `detail` telling the editor to wait for the build. The non-raw API client returns that body directly, but the confirmation handler reads `response.data.detail` and shows a generic error.",
      "action": "Read the top-level `response.detail` returned by the non-raw PUT and test that the alert shows the 409 message.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

…failed read keeps the last answer, and a row menu reads its default by URL

Codex review pass 2:
- F2.1: a Versions row menu asks about the default expansion its version names, whether or not its expansions are in
  yet, and a positive answer holds Release at once.
- F2.2: a failed processing/ read keeps the last answer and the polling; with no answer yet, it counts as built.
- F2.3, F2.4: the release confirmation and the edit form read whether the version they act on is having its default
  expansion built when they open; the confirmation's Submit waits, saying why, as the form's Released box does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 2 (codex-cli 0.169.0, commit 502bde3)

Verdict: findings (6 findings)

Pass 1 findings: F1.1 resolved, F1.2 unresolved, F1.3 resolved, F1.4 regressed, F1.5 resolved (F1.2 and F1.4 carry on as F2.1 and F2.2)

  • F2.1 (P1) src/components/repos/CollectionVersionsTab.jsx:676: The Versions row menu can still offer Release during a rebuild.
  • F2.2 (P1) src/hooks/useDefaultExpansionProcessing.js:8: A failed status poll now re-enables Release and stops polling during a known rebuild.
  • F2.3 (P1) src/components/repos/RepoHome.jsx:862: An open release confirmation stays actionable after the UI detects a rebuild.
  • F2.4 (P1) src/components/repos/RepoHome.jsx:608: An open version edit form can offer Release throughout a rebuild that starts after the form opens.
  • F2.5 (P2) src/components/repos/defaultExpansion.js:17: The version page mistakes an export for an expansion build when an auto-expanding version has no default.
  • F2.6 (P2) src/components/repos/__tests__/RepoManagementList.test.js:38: The menu test covers rendering a supplied warning but misses the live status behavior required by the ticket.

Response

  • F2.1: Fixed in a996a48: the row menu asks processing/ for the default its version names, whether or not the expansions are in yet, and a positive answer holds Release at once (then the expansions are read again and polled). Not held while that read is in flight: that would flash Release off on every open, and a release in that split second gets the API's 409 with its reason.
  • F2.2: Fixed: a failed read keeps the last answer and polling goes on; with no answer yet it counts as built. Not held on menu open while the refresh is in flight, for the same reason as F2.1.
  • F2.3: Fixed: the confirmation reads the target version's default expansion when it opens, and Submit waits, with the reason on hover, while it's being built (new ReleaseVersion test). Checked against a mocked API: menu opened while idle, rebuild started, Release clicked: Submit is disabled.
  • F2.4: Fixed in part: the edit form reads the same state when it opens. A rebuild started elsewhere after the form opened isn't polled for; saving then gets the API's 409, whose reason the form shows.
  • F2.5: Accepted. With no default, the UI can't tell a seed from an export from what the version carries; Release waits only until the export ends, and the Versions tab already held it during any processing.
  • F2.6: Accepted. This repo's tests render on the server, with no DOM to run effects or timers in, so the live transition isn't unit-tested; it was checked in a browser against a mocked API (the built screenshots in the PR body).
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "502bde360666665d8a669bbbfbdca6f70f21652f",
  "verdict": "findings",
  "prior": [
    {
      "id": "F1.1",
      "status": "resolved"
    },
    {
      "id": "F1.2",
      "status": "unresolved"
    },
    {
      "id": "F1.3",
      "status": "resolved"
    },
    {
      "id": "F1.4",
      "status": "regressed"
    },
    {
      "id": "F1.5",
      "status": "resolved"
    }
  ],
  "findings": [
    {
      "id": "F2.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 676,
      "claim": "The Versions row menu can still offer Release during a rebuild.",
      "scenario": "Open the row menu while the expansions list is loading and the version's default is rebuilding. Even though the version already has an expansion_url, the menu skips its status check because the expansion is missing from the local list. Release is enabled until the list arrives. With a stale list, Release also stays enabled while the status check and subsequent list refresh are pending.",
      "action": "Check the version's expansion_url directly, hold Release while the status is pending, and use a positive status response immediately to disable Release and start polling.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.2",
      "severity": "P1",
      "tag": null,
      "file": "src/hooks/useDefaultExpansionProcessing.js",
      "line": 8,
      "claim": "A failed status poll now re-enables Release and stops polling during a known rebuild.",
      "scenario": "The version page has already received true from processing/ and disabled Release. If the next poll returns 503 while the build is still running, the hook records false, enables Release, and clears its timer. Opening Actions after a cached false also leaves Release enabled until the fresh request answers.",
      "action": "Track pending and failed reads separately from a successful false response. Keep polling after a transient failure and hold Release while checking a potentially stale status.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.3",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 862,
      "claim": "An open release confirmation stays actionable after the UI detects a rebuild.",
      "scenario": "A user opens Actions after another editor starts a rebuild and clicks Release before the status refresh answers. The refresh then reports true, but the confirmation still lets the user submit and receive a 409.",
      "action": "Keep the confirmation tied to the target version's live expansion status. Disable Submit with the build reason while processing, and guard the submit handler against a release in that state.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.4",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 608,
      "claim": "An open version edit form can offer Release throughout a rebuild that starts after the form opens.",
      "scenario": "Open Edit while the default expansion is ready, then start a rebuild in another tab. The form's first status read returned false, so it never checks again. The Release checkbox remains enabled, and saving with it checked sends released: true and receives a 409.",
      "action": "Refresh the default expansion status while the edit form is open and gate submission when it would release a version whose expansion is building.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.5",
      "severity": "P2",
      "tag": null,
      "file": "src/components/repos/defaultExpansion.js",
      "line": 17,
      "claim": "The version page mistakes an export for an expansion build when an auto-expanding version has no default.",
      "scenario": "Clear the default on an unreleased auto-expanding version and run an export. The API marks the version as processing but still permits release because no expansion or seed is running. The version page disables Release and tells the user to wait for an expansion that is never being built.",
      "action": "Use the seed task's status to distinguish automatic expansion creation from other version processing when there is no default expansion URL.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.6",
      "severity": "P2",
      "tag": null,
      "file": "src/components/repos/__tests__/RepoManagementList.test.js",
      "line": 38,
      "claim": "The menu test covers rendering a supplied warning but misses the live status behavior required by the ticket.",
      "scenario": "The static test passes even if the page enables Release during a rebuild or leaves it disabled after processing/ returns false. It injects releaseWait directly and never exercises the status check or the open menu's transition.",
      "action": "Add a menu test that drives processing/ from true to false and verifies that Release shows the tooltip while blocked and becomes enabled without reopening the menu or reloading the page.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

…ach read their own version, and a row menu polls a build it found

Codex review pass 3:
- F3.1: the edit form and the release confirmation, which can be open at once for different versions, each read the
  default expansion of their own version.
- F3.2: when a row menu finds its default expansion being built, it polls that expansion from there, so Release turns
  on when the build ends even if the version's expansions can't be read again.
- F3.4: HEAD's row doesn't say Release waits for its expansion: HEAD is never released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 3 (codex-cli 0.169.0, commit a996a48)

Verdict: findings (4 findings). This was the third and last pass; the P1s are fixed below.

Earlier findings: F1.1 resolved, F1.2 unresolved, F1.3 resolved, F1.4 resolved, F1.5 resolved, F2.1 regressed, F2.2 resolved, F2.3 regressed, F2.4 unresolved, F2.5 unresolved, F2.6 unresolved. F2.1 and F2.3 carry on as F3.2 and F3.1; F1.2, F2.4, F2.5 and F2.6 were answered in pass 2.

  • F3.1 (P1) src/components/repos/RepoHome.jsx:608: The release confirmation can use the build status of the version open in the edit form.
  • F3.2 (P1) src/components/repos/CollectionVersionsTab.jsx:681: A successful build status read can leave the Versions menu stuck with Release disabled.
  • F3.3 (P2) src/components/repos/RepoHome.jsx:604: The version page can keep Release disabled for a rebuild that no longer affects its default expansion.
  • F3.4 (P2) src/components/repos/CollectionVersionsTab.jsx:723: The HEAD row can tell users that Release will become available after a rebuild.

Response

  • F3.1: Fixed in 847d54e: the edit form and the confirmation each read their own version's default expansion (two reads, one each).
  • F3.2: Fixed in 847d54e: a positive read from a row menu starts that expansion's poll directly, besides reading the expansions again. Checked against a mocked API: a rebuild started after the tab loaded holds Release, and Release turns on with the menu open once the build ends.
  • F3.3: Accepted. Following a default switched from another tab means reading the version again on every menu open; the API releases against the current default, and Release turns on when the old default's build ends.
  • F3.4: Fixed in 847d54e: HEAD's row gets no release wait (HEAD is never released); it keeps its processing tooltip as before.
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "a996a48d73b08014d66ac8be7ae6f958b5a6f92b",
  "verdict": "findings",
  "prior": [
    {
      "id": "F1.1",
      "status": "resolved"
    },
    {
      "id": "F1.2",
      "status": "unresolved"
    },
    {
      "id": "F1.3",
      "status": "resolved"
    },
    {
      "id": "F1.4",
      "status": "resolved"
    },
    {
      "id": "F1.5",
      "status": "resolved"
    },
    {
      "id": "F2.1",
      "status": "regressed"
    },
    {
      "id": "F2.2",
      "status": "resolved"
    },
    {
      "id": "F2.3",
      "status": "regressed"
    },
    {
      "id": "F2.4",
      "status": "unresolved"
    },
    {
      "id": "F2.5",
      "status": "unresolved"
    },
    {
      "id": "F2.6",
      "status": "unresolved"
    }
  ],
  "findings": [
    {
      "id": "F3.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 608,
      "claim": "The release confirmation can use the build status of the version open in the edit form.",
      "scenario": "From the Versions tab, edit v1 while its default expansion rebuilds. Leave the edit form open and choose Release for v2, whose expansion is ready. The confirmation names v2 but disables Submit and tells the user to wait for v2's expansion based on v1's rebuild.",
      "action": "Track the edit form and confirmation targets independently and pass each control the wait reason for its own version.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F3.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 681,
      "claim": "A successful build status read can leave the Versions menu stuck with Release disabled.",
      "scenario": "Open a row menu before its expansions list arrives, while its default expansion is rebuilding. The status endpoint returns true, then the forced list refresh returns 503. The refresh supersedes the first list request and leaves no expansion row to start polling. Release stays disabled after the build finishes, and reopening the menu skips the read because the cached status still says processing.",
      "action": "Start polling the named default expansion directly after a positive status read, independently of the expansions list. Add a regression test for a failed list refresh followed by build completion.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F3.3",
      "severity": "P2",
      "tag": null,
      "file": "src/components/repos/RepoHome.jsx",
      "line": 604,
      "claim": "The version page can keep Release disabled for a rebuild that no longer affects its default expansion.",
      "scenario": "Leave a version page open while default expansion A rebuilds. In another tab, set an already-built expansion B as the default. Reopening Actions on the first page still checks A and tells the user to wait, even though the API would release the version with B.",
      "action": "Refresh the version's default expansion URL when checking release readiness and while a known rebuild blocks Release.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F3.4",
      "severity": "P2",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 723,
      "claim": "The HEAD row can tell users that Release will become available after a rebuild.",
      "scenario": "Open the menu for an unreleased collection's HEAD row while its default expansion rebuilds. The tooltip says Release will become available once the expansion is built, but the menu keeps Release disabled for HEAD after the rebuild finishes.",
      "action": "Skip the expansion-specific Release tooltip for HEAD.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

…sed as is, the build rule tested through getReleaseWait

- S1: the Actions menu's refresh is passed as is; with no version to read it does nothing.
- S2: isDefaultExpansionBuilding is private to defaultExpansion.js, tested through getReleaseWait.
- S4: one "nothing waits" case in the menu test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Simplification review (claude subagent, commit 847d54e)

  • S1 (shrink) RepoHome.jsx: onActionsOpen={canRelease ? refresh : undefined} is redundant. Applied in e56f949: with no version, the refresh does nothing.
  • S2 (dup-test) defaultExpansion.test.js: isDefaultExpansionBuilding is exported only for tests that repeat getReleaseWait's. Applied: it's private, tested through getReleaseWait.
  • S3 (shrink) VersionForm.jsx: set expansion_url only when defined instead of set-then-delete. Not applied: getValues() already puts the field's raw value ('') in the payload, so it has to be deleted, or an edit would send '' and clear the default (pass 1's F1.1).
  • S4 (dup-test) RepoManagementList.test.js: the [null, undefined] loop repeats one case. Applied.

Tests rerun: npm test 496 pass; ESLint clean on src/components/repos and src/hooks. A final Codex check of the commits after the one pass 3 reviewed follows.

…ts no poll once the Versions tab is gone

Codex final check (FC.1): a processing/ answer that came back after the Versions tab unmounted could start a poll
nothing would stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits a996a48..e56f949 (codex-cli 0.169.0)

These are the pass 3 fixes and the simplification cuts.

Verdict: findings

  • FC.1 (P2) src/components/repos/CollectionVersionsTab.jsx:682: A late build-status response can start polling after the Versions tab has unmounted. Fixed in 851170e: a late answer is ignored once the tab is gone.
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "e56f949a18ee23cecf9244ef9485e1ff8b74a0b5",
  "verdict": "findings",
  "prior": [],
  "findings": [
    {
      "id": "FC.1",
      "severity": "P2",
      "tag": null,
      "file": "src/components/repos/CollectionVersionsTab.jsx",
      "line": 682,
      "claim": "A late build-status response can start polling after the Versions tab has unmounted.",
      "scenario": "Open a row menu during a rebuild and leave the Versions tab before the status response arrives. If the response says the build is active, it starts a 30-second poll after unmount cleanup has run. If the expansion is later deleted and the endpoint returns 404, the poll keeps sending requests until the page is reloaded or closed.",
      "action": "Ignore the menu's status response after the Versions tab unmounts, before updating state or starting the poll.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

Codex check of commits e56f949..851170e (codex-cli 0.169.0)

This is the FC.1 guard.

Verdict: clean

findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "851170ef755f93dc9f5ab753ee9334d987483ac8",
  "verdict": "clean",
  "prior": [],
  "findings": []
}

Review loop done. No P0 or P1 is open. These were accepted with reasons in the passes above: F1.2/F2.1 (no hold while a read is in flight), F2.4 (part), F2.5, F2.6 and F3.3. Screenshots in the PR body were recaptured on 851170e.

paynejd and others added 2 commits December 6, 2026 10:36
… builds an expansion isn't released as it's made

The New Version form's Released box is off for a collection version that builds an expansion, saying "Available once
this version's expansion is built": with the lock toggle, the expansion is chosen after Submit, and every choice but
"none" builds one; without it, while Autoexpand is ticked. The version is released once that's built, from its menu.
The API now refuses such a create (OpenConceptLab/oclapi2#1141). What the box shows checked is what's sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
…pansion lets a new collection version be made released

Codex review, round 2 pass 1 (F1.1): the expansion choice after Submit shows the Released box too. It's ticked only
when "none" is chosen, as nothing is built then; lock and latest build an expansion, so it waits, saying why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, round 2 pass 1 (codex-cli 0.169.0, commit 48e92fa)

This round reviews the New Version form change (the create path, decided after round 1).

Verdict: findings (1 finding)

  • F1.1 (P1) src/components/repos/VersionForm.jsx:90: The expansion lock toggle prevents releasing a new collection version even when the user chooses No expansion.

Response

  • F1.1: Fixed in 2625843. The expansion choice after Submit shows the Released box too: it can be ticked when "none" is chosen (nothing is built), and waits, saying why, for lock and latest. createWaitsForExpansion reads the final choice (test updated). Checked against a mocked API: with lock the box is disabled; with none it's enabled, and the POST sends released: true, expansion: "none".
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "full",
  "commit": "48e92fa894e9946c68714faa25df2419394a9438",
  "verdict": "findings",
  "prior": [],
  "findings": [
    {
      "id": "F1.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/VersionForm.jsx",
      "line": 90,
      "claim": "The expansion lock toggle prevents releasing a new collection version even when the user chooses No expansion.",
      "scenario": "With the toggle enabled, a collection editor chooses No expansion in the New Version popup. The form disables Released before the popup and never re-enables it. The POST sends expansion: 'none', autoexpand: false, and released: false, forcing a separate release action even though the API accepts released: true for this choice.",
      "action": "Offer the release choice in the popup when No expansion is selected. Use the final expansion choice to gate released in the POST, and test the submitted payload for none, lock, and latest.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

…drops a Released ticked there

Codex review, round 2 pass 2 (F2.1): closing the expansion choice without submitting clears the choice and the
Released box, so a release ticked beside "none" isn't carried into the next try.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, round 2 pass 2 (codex-cli 0.169.0, commit 2625843)

Verdict: findings (1 finding). Round 2 pass 1's F1.1 is resolved.

  • F2.1 (P1) src/components/repos/VersionForm.jsx:316: Dismissing the expansion popup preserves a canceled release choice.

Response

  • F2.1: Fixed in de7498b: backing out of the expansion choice clears the choice and the Released box. Checked against a mocked API: tick Released beside "none", Escape, open the choice again and pick "none": Released starts unticked, and the POST sends released: false.
findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "2625843eedf9ebfb55c827f4145a6c12bf7c08c7",
  "verdict": "findings",
  "prior": [
    {
      "id": "F1.1",
      "status": "resolved"
    }
  ],
  "findings": [
    {
      "id": "F2.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/repos/VersionForm.jsx",
      "line": 316,
      "claim": "Dismissing the expansion popup preserves a canceled release choice.",
      "scenario": "Choose No expansion, check Released, then press Escape to back out. Reopen the popup and choose No expansion again. Released silently becomes checked from the dismissed popup, so submitting can publish the version without a fresh opt-in.",
      "action": "Discard the popup's Released selection when it is dismissed. Add a form test that reopens the popup and confirms that choosing No expansion leaves Released unchecked.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Codex review, round 2 pass 3 (codex-cli 0.169.0, commit de7498b)

Verdict: clean. F1.1 and F2.1 are resolved, and no P0 or P1 is open.

findings.json
{
  "reviewer": "codex-cli 0.169.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "de7498bd1a309e5c10c087e15fdb51b22d245a11",
  "verdict": "clean",
  "prior": [
    {
      "id": "F1.1",
      "status": "resolved"
    },
    {
      "id": "F2.1",
      "status": "resolved"
    }
  ],
  "findings": []
}

@paynejd

paynejd commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

Simplification review, round 2 (claude subagent, commit de7498b)

  • S1 (shrink, low) VersionForm.jsx:87: drop || null in getReleaseWait. Not cut: it keeps the method's stated contract (a reason or null), and saves one line.
  • S2 (shrink, low) versionExpansion.js:15: drop the Boolean(...) wrapper. Not cut: it saves nothing, and keeps the result strictly boolean.

Nothing cut, so nothing came after the commit Codex pass 3 reviewed. Round 2's loop is done: 3 Codex passes, two P1s fixed, the last pass clean.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A collection version can't be released while its expansion is being built

1 participant